const env = process.env.NODE_ENV;
console.log(env) // mac/linux 使用export  window使用set
class Config {
    static port() {
        return env === 'development' ?
        '3000' : '3001'
    }
    static mongodb() {
        return env === 'development' ?
        {
            connect: '47.106.235.40:27017',
            name: 'fitness_' + env,
            user: 'admin',
            pwd: 'admin'
        } : {
            connect: '47.106.235.40:27017',
            name: 'fitness_' + env,
            user: 'admin',
            pwd: 'admin'
        }
    }
}

module.exports = Config;